
public abstract class Getriebe {
	
	protected int rpm = 0;
	protected int gang = 0;
	
	protected void setGang(int g){}
	
	public int getGang(){
		return gang;
	}
	
	//private void setRpm(int r){}
	
	public void hochschalten(){
		this.setGang(getGang()+1);
	}
	
	public void runterschalten(){
		this.setGang(getGang()-1);
	}

}
